import { fetchPost, fetchGet } from "./network"

export function getLogin (data) {
    return fetchPost("/auth/loginPlateform", data)
}
export function getSubKindList (data) {
    return fetchPost("/api/member/memberInfoCard/getSubKindList", data)
}
// 获取油品号 列表 /api/productInfo/list
export function productInfoList (data) {
    return fetchPost("/api/productInfo/list", data)
}
// 获取首页更多战点 油站的列表数据
export function selectListByProductInfoId (data) {
    return fetchPost("/api/store/getStoreListByCityId", data)
}
// 城市
export function getCityList (data) {
    return fetchPost("/util/getCityList", data)
}
// 腾讯地图逆地址编码解析
export function tx (data) {
    return fetchPost("https://apis.map.qq.com/ws/geocoder/v1/", data)
}
// 获取验证码
export function getCode (data) {
    return fetchPost("/util/getCode", data)
}
// 获取验证码 
export function createSubCard (data, token) {
    return fetchPost("/api/member/memberInfoCard/createSubCard", data, token)
}
// 获取会员卡详情
export function selectDetailsById (data) {
    return fetchPost("/api/member/memberInfoCard/selectDetailsById", data)
}
// 查看以赠送的副卡
export function getSubCardView (data) {
    return fetchPost("/api/member/memberInfoCard/getSubCardView", data)
}
// 查看亲属卡详情
export function getSubCardDetail (data) {
    return fetchPost("/api/member/memberInfoCard/getSubCardDetail", data)
}
// 亲属卡修改额度  
export function updatePayLimit (data) {
    return fetchPost("/api/member/memberInfoCard/updatePayLimit", data)
}
// 解绑副卡
export function unbindCard (data) {
    return fetchPost("/api/member/memberInfoCard/unbindCard", data)
}
// jssdk 签约
export function getJsSDKSign (data) {
    return fetchPost("/util/getJsSDKSign", data)
}
//通过门店id获取油站信息
export function oilstation (data) {
    return fetchPost('/api/store/getStore', data);
}
//迷瞪行
export function getIdempotentToken (data) {
    return fetchPost('/util/getIdempotentToken', data);
}
export function getCityCode (data) {
    return fetchPost("/util/getCityCode", data)
}
export function getMemberInfoCard (data) {
    return fetchPost("/api/member/memberInfoCard/getMemberInfoCard", data)
}
export function getQRCodeActivityDetails (data) {
    return fetchPost("/api/activity/getQRCodeActivityDetails", data)
}
export function getActivityNew (data) {
    return fetchPost('/api/activity/doCouponNewMemberActivity', data)
}
// 油站详情弹窗广告 
export function getPopAdvert (data) {
    return fetchPost('/api/advert/getPopAdvert', data)
}
// 订单列表
export function getMemberCardOrders (data) {
    return fetchPost('/api/order/getMemberCardOrders', data)
}
// 订单详情
export function getOrder (data) {
    return fetchPost('/api/order/getOrder', data)
}
// 根据优惠券id获取可用门店信息
export function getStoreListByCouponId (data) {
    return fetchPost('/api/store/getStoreListByCouponId', data)
}

// 获取门店列表 2021-12-28
export function getFriendshipListByStoreId (data) {
    return fetchPost('/api/store/getFriendshipListByStoreId', data)
}